import Mock from 'mockjs'

Mock.mock('http://127.0.0.1:1314/tableDataUnTemp', 'get', {
  code: 200,
  data: {
    formHead: [
      { 名称: 'name' },
      { '温度/℃': 'temperature' },
      { '上限/℃': 'upperLimit' },
      { '下限/℃': 'downLimit' },
      { 机速: 'speed' }
    ],
    dataTab: [
      {
        name: 'L1',
        temperature: 1100,
        upperLimit: 1500,
        downLimit: 1134,
        speed: 1343
      },
      {
        name: 'L2',
        temperature: 1100,
        upperLimit: 1500,
        downLimit: 1134,
        speed: 1343
      },
      {
        name: 'L3',
        temperature: 1100,
        upperLimit: 1200,
        downLimit: 1134,
        speed: 1343
      },
      {
        name: 'L4',
        temperature: 1100,
        upperLimit: 1500,
        downLimit: 1184,
        speed: 1343
      },
      {
        name: 'L5',
        temperature: 1100,
        upperLimit: 1580,
        downLimit: 1734,
        speed: 1343
      },
      {
        name: 'L6',
        temperature: 1100,
        upperLimit: 1590,
        downLimit: 2734,
        speed: 1343
      },
      {
        name: 'L7',
        temperature: 1100,
        upperLimit: 1590,
        downLimit: 2734,
        speed: 1323
      }
    ]
  }
})

Mock.mock('http://127.0.0.1:1314/tableData/TemperStove', 'get', {
  code: 200,
  data: {
    formHead: [
      { 显示名称: 'name' },
      { '10分钟/℃': 'temperAlready' },
      { '30分钟/℃': 'upperLimit' },
      { '1小时/℃': 'downLimit' }
    ],
    data: {
      threeStove: [
        {
          name: '炉底南',
          temperAlready: 15,
          upperLimit: 15,
          downLimit: 15
        },
        {
          name: '炉底西',
          temperAlready: 32,
          upperLimit: 32,
          downLimit: 32
        },
        {
          name: '西煤上',
          temperAlready: 29,
          upperLimit: 29,
          downLimit: 29
        },
        {
          name: '东煤上',
          temperAlready: 15,
          upperLimit: 15,
          downLimit: 15
        },
        {
          name: '流液洞北',
          temperAlready: 32,
          upperLimit: 32,
          downLimit: 32
        },
        {
          name: '流液洞西',
          temperAlready: 29,
          upperLimit: 29,
          downLimit: 29
        },
        {
          name: '西空上',
          temperAlready: 15,
          upperLimit: 15,
          downLimit: 15
        },
        {
          name: '东空上',
          temperAlready: 32,
          upperLimit: 32,
          downLimit: 32
        },
        {
          name: '炉顶',
          temperAlready: 28,
          upperLimit: 27,
          downLimit: 54
        },
        {
          name: '西煤下',
          temperAlready: 54,
          upperLimit: 56,
          downLimit: 23
        },
        {
          name: '东煤下',
          temperAlready: 23,
          upperLimit: 25,
          downLimit: 23
        },
        {
          name: '1650 ± 5',
          temperAlready: 25,
          upperLimit: 25,
          downLimit: 24
        },
        {
          name: '炉液面',
          temperAlready: 27,
          upperLimit: 28,
          downLimit: 29
        }
      ],
      fiveStove: [
        {
          name: '炉底南',
          temperAlready: 15,
          upperLimit: 15,
          downLimit: 15
        },
        {
          name: '炉底西',
          temperAlready: 32,
          upperLimit: 32,
          downLimit: 32
        },
        {
          name: '西煤上',
          temperAlready: 29,
          upperLimit: 29,
          downLimit: 29
        },
        {
          name: '东煤上',
          temperAlready: 15,
          upperLimit: 15,
          downLimit: 15
        },
        {
          name: '流液洞北',
          temperAlready: 32,
          upperLimit: 32,
          downLimit: 32
        },
        {
          name: '流液洞西',
          temperAlready: 29,
          upperLimit: 29,
          downLimit: 29
        },
        {
          name: '西空上',
          temperAlready: 15,
          upperLimit: 15,
          downLimit: 15
        },
        {
          name: '东空上',
          temperAlready: 32,
          upperLimit: 32,
          downLimit: 32
        },
        {
          name: '炉顶',
          temperAlready: 28,
          upperLimit: 27,
          downLimit: 54
        },
        {
          name: '西煤下',
          temperAlready: 54,
          upperLimit: 56,
          downLimit: 23
        },
        {
          name: '东煤下',
          temperAlready: 23,
          upperLimit: 25,
          downLimit: 23
        },
        {
          name: '1650 ± 5',
          temperAlready: 25,
          upperLimit: 25,
          downLimit: 24
        },
        {
          name: '炉液面',
          temperAlready: 27,
          upperLimit: 28,
          downLimit: 29
        }
      ]
    }
  }
})

Mock.mock('http://127.0.0.1:1314/tableData/rowColumnMachine', 'get', {
  code: 200,
  data: {
    formHead: [
      { 名称: 'name' },
      { 料道温度1: 'materialPathOne' },
      { 料道温度2: 'materialPathtwo' },
      { 料道温度3: 'materialPathThree' },
      { 料道温度4: 'materialPathFour' },
      { '机速/个': 'speed' },
      { '滴料数/个': 'droppingMaterial' },
      { '瓶重量/g': 'bottleWeight' },
      { '剪料数/g': 'shearingMaterial' },
      { '出料数/g': 'dischargeMaterial' }
    ],
    dataTab: [
      {
        name: 'L1',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      },
      {
        name: 'L2',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      },
      {
        name: 'L3',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      },
      {
        name: 'L4',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      },
      {
        name: 'L5',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      },
      {
        name: 'L6',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      },
      {
        name: 'L7',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      },
      {
        name: 'L8',
        materialPathOne: 1100,
        materialPathtwo: 1500,
        materialPathThree: 1134,
        materialPathFour: 1134,
        speed: 1343,
        droppingMaterial: 1343,
        bottleWeight: 1500,
        shearingMaterial: 1343,
        dischargeMaterial: 1800
      }
    ]
  }
})
